/**
 * Copyright (c) 2012 Baozun All Rights Reserved.
 *
 * This software is the confidential and proprietary information of Baozun.
 * You shall not disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Baozun.
 *
 * BAOZUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. BAOZUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 *
 */
package com.johnny.xia.json;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author johnnyxia
 *
 */
public class ColorImage implements Serializable{
    
    /**
     * 
     */
    private static final long serialVersionUID = 8157265467893799502L;

    private boolean isMainColor;
    
    private String colorCode;
    
    private List<ColorImage.ImgUrl> imgUrl = new ArrayList<>();
    
    public class ImgUrl{
        private int position;
        
        private String url;

        
        public int getPosition(){
            return position;
        }

        
        public String getUrl(){
            return url;
        }

        
        public void setPosition(int position){
            this.position = position;
        }

        
        public void setUrl(String url){
            this.url = url;
        }
        
    }
    
    public boolean isMainColor(){
        return isMainColor;
    }


    
    public String getColorCode(){
        return colorCode;
    }


    
    public void setMainColor(boolean isMainColor){
        this.isMainColor = isMainColor;
    }


    
    public void setColorCode(String colorCode){
        this.colorCode = colorCode;
    }



    
    public List<ColorImage.ImgUrl> getImgUrl(){
        return imgUrl;
    }



    
    public void setImgUrl(List<ColorImage.ImgUrl> imgUrl){
        this.imgUrl = imgUrl;
    }

}
